//
//  BaseViewController.swift
//  demo3
//
//  Created by zaizai on 2018/5/30.
//  Copyright © 2018年 guest. All rights reserved.
//

import UIKit

class BaseViewController: UIViewController, UINavigationControllerDelegate{
    
    override func viewWillAppear(_ animated: Bool) {
            super.viewWillAppear(animated)
    //        self.navigationController?.navigationBar.isHidden = false
             self.navigationController?.setNavigationBarHidden(false, animated: true)
            self.navigationController?.navigationBar.barStyle = .default
        }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.gray
        setNormalNavigation()
      let array =  navigationController?.viewControllers
        if array!.count > 1 {
            defaultLeftBackIetm(title: "", image: "fanhuiir")
        }
       
    }
    
  

 
    deinit {
//       DLog("============\(NSStringFromClass(type(of: self)))=================")
    }
    
    
    
    
    
    
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
    
}
